package com.stylefeng.guns.modular.bank.warpper;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import com.stylefeng.guns.core.common.constant.factory.ConstantFactory;
import com.stylefeng.guns.modular.system.model.Bank;

import java.util.List;
import java.util.Map;

public class BankWarpper extends BaseControllerWarpper {
    public BankWarpper(List<Bank> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        map.put("banktypeName", ConstantFactory.me().getDictsByName("银行类型",(Integer)  map.get("banktype")));
        map.put("statusName", ConstantFactory.me().getDictsByName("银行状态",(Integer)  map.get("status")));
        map.put("platformName", ConstantFactory.me().getDeptNameByCode( map.get("platform").toString()));
    }
}
